projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f8b033
)
xend: Cast oos flag to int before arithmetic.
author
Keir Fraser
<keir.fraser@citrix.com>
Tue, 20 Oct 2009 07:43:27 +0000
(08:43 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Tue, 20 Oct 2009 07:43:27 +0000
(08:43 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/python/xen/xend/XendDomainInfo.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendDomainInfo.py
b/tools/python/xen/xend/XendDomainInfo.py
index 98214d92ceb1246989b4ca6bd7db216108cba66e..bf3c396ea40cde017ee50bb3c1163db7dc55a69c 100644
(file)
--- a/
tools/python/xen/xend/XendDomainInfo.py
+++ b/
tools/python/xen/xend/XendDomainInfo.py
@@
-2421,7
+2421,7
@@
class XendDomainInfo:
s3_integrity = self.info['s3_integrity']
oos = self.info['platform'].get('oos', 1)
- oos_off = 1 -
oos
+ oos_off = 1 -
int(oos)
flags = (int(hvm) << 0) | (int(hap) << 1) | (int(s3_integrity) << 2) | (int(oos_off) << 3)